<?php


namespace App\Constants;


class MiniProgramConstant
{
    const GROUP = 'wechat';

    const APP_ID = 'app_id';
    const APP_SECRET = 'secret';
    const APP_TOKEN = 'token';
    const APP_AES_KEY = 'aes_key';
    const APP_MCH_ID = 'mch_id';
    const APP_KEY = 'key';
    const APP_CERT_PATH = 'cert_path';
    const APP_KEY_PATH = 'key_path';

    const YT_KB = 'yt_kb';
    const FZSD_KB = 'fzsd_kb';
    const XW = 'xw';

    const VIP_IS_CLOSE_ADV = 'vip_is_close_adv';

    const CACHE_KEY = 'all_mini_program';

    const PUBLISH_TOPIC_SWITCH = 'publish_topic_switch';

    const EXCHANGE_INTEGRAL_SWITCH = 'exchange_integral_switch';

    const ALL_ARTICLE_SWITCH = 'all_article_switch';

    const ALL_TOPIC_SWITCH = 'all_topic_switch';

    const DEFAULT_HEAD_PICTURE = 'default_head_picture';

    const VIP_RECHARGE_SWITCH = 'vip_recharge_switch';

    const KF_SWITCH = 'kf_switch';

    const DISEASE_DISCERN_DIY_FORM_SWITCH = 'disease_discern_switch';
    const DISEASE_DISCERN_DIY_FORM_ID = 'disease_discern_id';

    const SETTING_MAP = [
        self::APP_ID        => 'app_id',
        self::APP_SECRET    => 'secret',
        self::APP_TOKEN     => 'token',
        self::APP_AES_KEY   => 'aes_key',
        self::APP_MCH_ID    => 'mch_id',
        self::APP_KEY       => 'key',
        self::APP_CERT_PATH => 'cert_path',
        self::APP_KEY_PATH  => 'key_path',
    ];

    const MAP = [
        self::YT_KB   => '易通快报',
        self::FZSD_KB => '方舟时代快报',
        self::XW      => '穴位大全',
    ];

    const JUMP_MAP = [
        'index'       => '首页',
        'topic_index' => '动态圈',
        'me'          => '我的',
        'mini_page'   => '内页',
        'url'         => '外链',
        'jump_mini'   => '跳转小程序'
    ];
}
